package Com.Isman.Location;

import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;

public class LocationBase {
	private Context context;
	private LocationManager mgr;
	
	public LocationBase(Context context){
		this.context = context;
		
		mgr = (LocationManager)this.context.getSystemService(Context.LOCATION_SERVICE);
	}
	
	public Location GetLocation(){
		String base = mgr.getBestProvider(new Criteria(), true);
		return mgr.getLastKnownLocation(base);
	}
}
